/* This is a simple program that prints out the first
 * max fibonacci numbers, each number on a new line.
 * Uses ecrire() to write to the console.
 */

#include<stdlib.h>
#include<stdio.h>

#define max 100

int main(int argc, int argv[]){

  int v1 = 0;
  int v2 = 1;

  printf("%d\n%d\n", v1,v2);

  while(v1+v2 <= max){

    printf("%d\n", v1+v2);
    v2 += v1; //store the new fibonacci number
    v1 = v2 - v1;

  }

  return EXIT_SUCCESS;

}
